package com.evony.common.server.events 
{
    import com.evony.common.*;
    
    public class ChangeName extends com.evony.common.BaseBean
    {
        public function ChangeName(arg1:String, arg2:Object, arg3:Boolean=false, arg4:Boolean=false)
        {
            var loc1:*=0;
            super(arg1, arg3, arg4);
            if (arg2.changeType != null) 
            {
                this.changeType = arg2.changeType;
            }
            if (arg2.errorMsg != null) 
            {
                this.errorMsg = arg2.errorMsg;
            }
            if (arg2.msg != null) 
            {
                this.msg = arg2.msg;
            }
            if (arg2.nowName != null) 
            {
                this.nowName = arg2.nowName;
            }
            if (arg2.ok != null) 
            {
                this.ok = arg2.ok;
            }
            if (arg2.packageId != null) 
            {
                this.packageId = arg2.packageId;
            }
            return;
        }

        public override function toDebugString(arg1:String=""):String
        {
            var loc1:*=0;
            var loc2:*="---- ChangeName ----\n";
            loc2 = loc2 + (arg1 + "changeType = " + this.changeType + "\n");
            loc2 = loc2 + (arg1 + "errorMsg = " + this.errorMsg + "\n");
            loc2 = loc2 + (arg1 + "msg = " + this.msg + "\n");
            loc2 = loc2 + (arg1 + "nowName = " + this.nowName + "\n");
            loc2 = loc2 + (arg1 + "ok = " + this.ok + "\n");
            loc2 = loc2 + (arg1 + "packageId = " + this.packageId + "\n");
            return loc2;
        }

        public function copyTo(arg1:com.evony.common.server.events.ChangeName):void
        {
            arg1.changeType = this.changeType;
            arg1.errorMsg = this.errorMsg;
            arg1.msg = this.msg;
            arg1.nowName = this.nowName;
            arg1.ok = this.ok;
            arg1.packageId = this.packageId;
            return;
        }

        public function toObject():Object
        {
            var loc1:*=new Object();
            loc1.changeType = this.changeType;
            loc1.errorMsg = this.errorMsg;
            loc1.msg = this.msg;
            loc1.nowName = this.nowName;
            loc1.ok = this.ok;
            loc1.packageId = this.packageId;
            return loc1;
        }

        public var nowName:String;

        public var msg:String;

        public var changeType:int;

        public var packageId:Number;

        public var errorMsg:String;

        public var ok:int;
    }
}
